Support to inherit project level plugin configuration When reading the project level plugin configuration it is now possible to get missing configuration values inherited from the parent projects. Change-Id: I809a95aa8a6823331976bbd4c821749c685e7497 Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
diff --git a/Documentation/dev-plugins.txt b/Documentation/dev-plugins.txt index c0abf9a..cc96e81 100644 --- a/Documentation/dev-plugins.txt +++ b/Documentation/dev-plugins.txt
@@ -401,6 +401,20 @@ .getBoolean("enabled", false); ---- +It is also possible to get missing configuration parameters inherited +from the parent projects: + +[source,java] +---- + @Inject + private com.google.gerrit.server.config.PluginConfigFactory cfg; + + ... + + boolean enabled = cfg.getWithInheritance(project, "helloworld") + .getBoolean("enabled", false); +---- + Project owners can edit the project configuration by fetching the `refs/meta/config` branch, editing the `project.config` file and pushing the commit back.